<?php

class BaseTools {

    /*
	 * 基础工具类
	 */
    
    public function getUrl ($uri, $param = '', $homeUrl) {
        $extra = '';
        if (!empty($param) || is_array($param)) {
            foreach ($param as $k => $v) {
                $extra .= '&' . $k . '=' . $v;
            }
        }
        return $homeUrl . '?q=' . $uri . $extra;
    }
}
?>